home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / sun / management / CompilerThreadStat.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.0 KB  |  39 lines

  1. package sun.management;
  2.  
  3. import java.io.Serializable;
  4.  
  5. public class CompilerThreadStat implements Serializable {
  6.    private String name;
  7.    private long taskCount;
  8.    private long compileTime;
  9.    private MethodInfo lastMethod;
  10.    private static final long serialVersionUID = 6992337162326171013L;
  11.  
  12.    CompilerThreadStat(String var1, long var2, long var4, MethodInfo var6) {
  13.       this.name = var1;
  14.       this.taskCount = var2;
  15.       this.compileTime = var4;
  16.       this.lastMethod = var6;
  17.    }
  18.  
  19.    public String getName() {
  20.       return this.name;
  21.    }
  22.  
  23.    public long getCompileTaskCount() {
  24.       return this.taskCount;
  25.    }
  26.  
  27.    public long getCompileTime() {
  28.       return this.compileTime;
  29.    }
  30.  
  31.    public MethodInfo getLastCompiledMethodInfo() {
  32.       return this.lastMethod;
  33.    }
  34.  
  35.    public String toString() {
  36.       return this.getName() + " compileTasks = " + this.getCompileTaskCount() + " compileTime = " + this.getCompileTime();
  37.    }
  38. }
  39.